﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;

namespace HYRevitCode.ShortPathSuite
{
	public class UseGraphCalculater
	{
		public bool TryCalculateShortestPath(XYZ startPoint, XYZ endPoint, List<Curve> lstCurves, out List<XYZ> shortPath)
		{
			shortPath = this.m_CoreCaculater.CalculateShortPath(startPoint, endPoint, lstCurves);
			return shortPath != null && shortPath.Count != 0;
		}

		protected ShortDistanceCalculater m_CoreCaculater = new ShortDistanceCalculater();
	}
}
